import { getCreationDetail } from '~/api/create'

export const useCreate = async () => {
    const write = ref({})
    const report = ref({})

    // 写作
    await getCreationDetail({
        id: 41
    }).then((res) => {
        write.value = res
    })
    // await getCreationDetail({
    //     id: 43
    // }).then((res) => {
    //     write.value = res
    // })
    // 回复
    await getCreationDetail({
        id: 42
    }).then((res) => {
        report.value = res
    })

    return {
        write,
        report
    }
}
